package com.samsung.service.impl.vote;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.samsung.dao.vote.OptionMapper;
import com.samsung.model.vote.VoteOption;
import com.samsung.service.vote.OptionService;
@Service("optionService")
public class OptionServiceImpl implements OptionService {
	@Autowired
	private OptionMapper optionMapper;

	@Override
	public int deleteByPrimaryKey(String oid) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insert(VoteOption record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insertSelective(VoteOption record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public VoteOption selectByPrimaryKey(String oid) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int updateByPrimaryKeySelective(VoteOption record) {
		// TODO Auto-generated method stub
		return 0;
	}
   /**
    * 通过tid查询投票记录
    */
	@Override
	public List<VoteOption> listByTopic(String tid) {
		return  optionMapper.listByTopic(tid);
	}
	
}
